if {global.generation} = 5
	M291 T0 S4 R"Networking mode Selection" P"What type of networking would you like to use" K{"Fully Disabled","Ethernet","WiFi","Access Point"} 
		if input = 0
			M552 I0 S0 ; Disable Ethernet
			M552 I1 S0 ; Disable WiFi
			G4 S1 ; wait 1 second
			set global.networking = 0
			echo >"0:/sys/config_networking.g" "if !exists(global.networking)"
			echo >>"0:/sys/config_networking.g" "   global networking = 0 ; Networking is disabled"
			echo >>"0:/sys/config_networking.g" "M552 I0 S0 ; Disabled Ethernet"
			echo >>"0:/sys/config_networking.g" "M552 I1 S0 ; Disable WiFi"
			M291 S2 R"Networking Disabled" P"Your printer's networking has been disabled"
		if input = 1
			M552 I0 S0 ; Disable Ethernet
			M552 I1 S0 ; Disable WiFi
			G4 S1 ; wait 1 second
			M552 I0 S1 ; Enable Ethernet
			G4 S1 ; wait 1 second
			set global.networking = 3
			echo >"0:/sys/config_networking.g" "if !exists(global.networking)"
			echo >>"0:/sys/config_networking.g" "   global networking = 3 ; Printer is setup to in Ethernet mode"
			echo >>"0:/sys/config_networking.g" "M552 I0 S1 ; Enable Ethernet"
			echo >>"0:/sys/config_networking.g" "M552 I1 S0 ; Disable WiFi"
			M291 S2 R"Ethernet mode enabled" P"Your printer will now connect to your local network via Ethernet"
		if input = 2
			M552 I0 S0 ; Disable Ethernet
			G4 S1 ; wait 1 second
			M552 I1 S0 ; Disable WiFi
			G4 S2 ; wait 2 seconds
			M552 S1 S1 ; Enable WiFi
			G4 S1 ; wait 1 second
			set global.networking = 1
			echo >"0:/sys/config_networking.g" "if !exists(global.networking)"
			echo >>"0:/sys/config_networking.g" "   global networking = 1 ; Printer is setup to connect to your local WiFi network"
			echo >>"0:/sys/config_networking.g" "M552 I0 S0 ; Disable Ethernet"
			echo >>"0:/sys/config_networking.g" "M552 I1 S1 ; Boot the printer up with it connecting to your local WiFi network"
			M291 S2 R"Access Point mode enabled" P"Your printer will now connect to your local network on boot"
		if input = 3
			M552 I0 S0 ; Disable Ethernet
			G4 S2 ; wait 1 second
			M552 I1 S0 ; Disable WiFi
			G4 S2 ; wait 2 seconds
			M552 I1 S2 ; Enable access point mode
			G4 S1 ; wait 1 second
			set global.networking = 2
			echo >"0:/sys/config_networking.g" "if !exists(global.networking)"
			echo >>"0:/sys/config_networking.g" "  global networking = 2 ; Printer is setup to create a local access point"
			echo >>"0:/sys/config_networking.g" "M552 I0 S0 ; Disable Ethernet"
			echo >>"0:/sys/config_networking.g" "M552 I1 S2 ; Boot the printer up in access point mode"
			M291 S2 R"Access Point mode enabled" P"Your printer will now boot up in Access Point Mode"
elif {global.generation} = 4
	M291 T0 S4 R"Networking mode Selection" P"What type of networking would you like to use" K{"Fully Disabled","WiFi","Access Point"} 
		if input = 0
			M552 S0 ; Disable WiFi
			G4 S1 ; wait 1 second
			set global.networking = 0
			echo >"0:/sys/config_networking.g" "if !exists(global.networking)"
			echo >>"0:/sys/config_networking.g" "  global networking = 0 ; Networking is disabled"
			echo >>"0:/sys/config_networking.g" "M552 S0 ; Disable WiFi"
			M291 S2 R"Networking Disabled" P"Your printer's networking has been disabled"
		if input = 1
			M552 S0 ; Disable WiFi
			G4 S1 ; wait 1 second
			M552 S1 ; Enable WiFi
			G4 S1 ; wait 1 second
			set global.networking = 1
			echo >"0:/sys/config_networking.g" "if !exists(global.networking)"
			echo >>"0:/sys/config_networking.g" "   global networking = 1 ; Printer is setup to connect to your local WiFi network"
			echo >>"0:/sys/config_networking.g" "M552 S0 ; Disable Ethernet"
			echo >>"0:/sys/config_networking.g" "M552 S1 ; Boot the printer up with it connecting to your local WiFi network"
			M291 S2 R"Access Point mode enabled" P"Your printer will now connect to your local network on boot"
		if input = 2
			M552 S0 ; Disable WiFi
			G4 S1 ; wait 1 second
			M552 S2 ; Enable access point mode
			G4 S1 ; wait 1 second
			set global.networking = 2
			echo >"0:/sys/config_networking.g" "if !exists(global.networking)"
			echo >>"0:/sys/config_networking.g" "   global networking = 2 ; Printer is setup to create a local access point"
			echo >>"0:/sys/config_networking.g" "M552 S2 ; Boot the printer up in access point mode"
			M291 S2 R"Access Point mode enabled" P"Your printer will now boot up in Access Point Mode"